extends Node
@onready var TRANSITION_SCENE = preload("res://UI/transition_scene.tscn")

func transition_to_scene(scenePath):
	var transition_screen := TRANSITION_SCENE.instantiate()
	add_child(transition_screen)
	await transition_screen.screen_covered
	get_tree().change_scene_to_file(scenePath)
